package com.ys.homework;

/**
 * 描述: 基础人类
 *
 * @author CodeYang
 * @version 2020/12/16 0:21
 */
public class Person {

    String name;
    int age;
    String sex;

    public Person() {
    }

    public Person(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;

    }

    /**
     * 输出基本信息
     */
    public void showInfo(){
        System.out.println("大家好,我是一个老百姓");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
